package com.example.demo;

import com.example.conditionBase.specialCondition.SpecialC;
import com.example.conditionBase.specialCondition.SpecialConditionAnnotion;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;

@SpringBootApplication(scanBasePackages = "com.example")
public class DemoApplication{

	
	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}


	@Bean
	// 指定自定义的条件判断注解Class
	@Conditional(SpecialConditionAnnotion.class)
	public SpecialC buildSpecialC(){
		return new SpecialC();
	}
}
